package cn.sxt.shop.users.pojo;

import java.util.Date;

/**
 * 商品类
 * @author Administrator
 *
 */
public class AGoods {
	private int id;
	private int adminsId;
	private int cateId;
	private int brandId;
	private String name;
	private String title;
	private String url;
	private double weight;
	private String content;
	private int saleNum;
	private int remainNum;
	private double marketPrice;
	private String listImgPath;
	private String imgs;
	private String spec;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTime;
	/* 状态的字符串描述 */
	private String strStatus;
	
	public String getStrStatus() {
		AAdminsEnum[] adminsEnums = AAdminsEnum.values();
		for (int i = 0; i < adminsEnums.length; i++) {
			AAdminsEnum adminsEnum = adminsEnums[i];
			if(adminsEnum.toString().startsWith("STATUS_")
					&& this.getStatus() == adminsEnum.getStatus()){
				this.strStatus = adminsEnum.getName();
			}
		}
		return strStatus;
	}
	public byte getStatus() {
		return status;
	}
	public void setStatus(byte status) {
		this.status = status;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getAdminsId() {
		return adminsId;
	}
	public void setAdminsId(int adminsId) {
		this.adminsId = adminsId;
	}
	public int getCateId() {
		return cateId;
	}
	public void setCateId(int cateId) {
		this.cateId = cateId;
	}
	public int getBrandId() {
		return brandId;
	}
	public void setBrandId(int brandId) {
		this.brandId = brandId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public double getWeight() {
		return weight;
	}
	public void setWeight(double weight) {
		this.weight = weight;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getSaleNum() {
		return saleNum;
	}
	public void setSaleNum(int saleNum) {
		this.saleNum = saleNum;
	}
	public int getRemainNum() {
		return remainNum;
	}
	public void setRemainNum(int remainNum) {
		this.remainNum = remainNum;
	}
	public double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(double marketPrice) {
		this.marketPrice = marketPrice;
	}
	public String getListImgPath() {
		return listImgPath;
	}
	public void setListImgPath(String listImgPath) {
		this.listImgPath = listImgPath;
	}
	public String getImgs() {
		return imgs;
	}
	public void setImgs(String imgs) {
		this.imgs = imgs;
	}
	public String getSpec() {
		return spec;
	}
	public void setSpec(String spec) {
		this.spec = spec;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public Date getPubTime() {
		return pubTime;
	}
	public void setPubTime(Date pubTime) {
		this.pubTime = pubTime;
	}
	
}
